package com.scvtc.domain.dto.system.menu;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Description: 菜单信息
 * @Author: yiFei
 * @date: 2022/4/17 19:29
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("菜单信息")
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SystemMenuUpdateDto implements Serializable {

    private static final long serialVersionUID = 253604820353738189L;

    private Long id;

    /**
     * 菜单名
     */
    @ApiModelProperty(value = "菜单名")
    private String name;

    /**
     * 类型     0：目录   1：菜单   2：按钮
     */
    @ApiModelProperty(value = "类型     0：目录   1：菜单   2：按钮")
    private Integer type;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标")
    private String icon;

    /**
     * 是否缓存  0: 不缓存 1: 缓存
     */
    @ApiModelProperty(value = "是否缓存 0: 不缓存 1: 缓存")
    private Boolean keepAlive;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer orderNum;
}
